<?php
 // no direct access
defined('_JEXEC') or die('Restricted access');
?>

<script src="modules/mod_longdhslideshow/asset/jquery.js" type="text/javascript"></script>
<script src="modules/mod_longdhslideshow/asset/jquery.faded.js" type="text/javascript"></script>
<link rel="stylesheet" href="modules/mod_longdhslideshow/asset/constant.css" type="text/css" />

<script type="text/javascript">
var $j = jQuery.noConflict();
$j(function(){
			$j("#faded").faded({
				speed: 500,
				crossfade: true,
				autoplay: 7000,
				autopagination:true
			});
		});
		$j(function(){
			$j("#slider-box").faded({
				speed: 500,
				crossfade: false,
				autoplay: 7000,
				autopagination:true
			});
		});
		$j(function()
		{
			$j("#link").click(function(event) {
			event.preventDefault();
			$j(this).toggleClass("link2");
			$j("#dropdown_box").slideToggle();
			});
		});

</script>

<table>
    <tr>
        <td>
            <div class="tail-header clear">
                <div class="main wrapepr-header">
                  <div class="moduletable">
                  <div class="row-slider">
                  <div id="faded">
                      <ul>
                          <?php
                              for ($k=0, $n=count( $imgs ); $k < $n; $k++){
                          ?>
                          <li>
                              <span class="slider-box clear">
                                  <span class="col-1 fleft">
                                      <span class="text-1"></span>
                                      <span class="text-2">
                                          <?php echo $te2[$k]; ?>
                                      </span>
                                  </span>
                                  <span class="col-2 fleft">
                                    <img  src="<?php echo ($folder.$imgs[$k]); ?>" alt=""  />
                                    <span class="text">Tâm Thảo là hệ thống Shop chuyên thời trang nam, nữ, trẻ em và đặc biệt là đồ lót Sabina, các mặt hàng thời trang đều “Made In Thailand”.</span>
                                    <button  id="slider-readmore" onclick="location.href='/index.php?option=com_content&view=category&layout=blog&id=42&Itemid=85'"  />
                                  </span>
                              </span>
                          </li>
                          <?php } ?>
                      </ul>
                      <a href="#" class="prev">prev</a>
                      <a href="#" class="next">next</a>
                </div>
               </div>
            </div>
          </div>
        </div>
        </td>
    </tr>
</table>
<script type="text/javascript">jQuery.noConflict();</script>
